<form action="/authentication/login" method="post" id="login-form" class="shadow-low">
	<h2>Login</h2>
	<label for="username">Username: </label>
	<input type="text" name="username" id="username" />
	
	<label for="password">Password: </label>
	<input type="password" name="password" id="password" />
	
	<input type="submit" value="Login">
	<br clear="all" />
</form>

<script type="text/javascript">
$(function(){
	setLoginFormPosition();
	$(window).resize(setLoginFormPosition);
});

function setLoginFormPosition() {
	$('#login-form').css("margin-top", Math.round(($(window).height()-$('#login-form').height())/2));
}
</script>